package com.ccxy.springboot.service.imp;

import com.ccxy.springboot.mapper.BootMapper;
import com.ccxy.springboot.service.BootService;
import com.github.pagehelper.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.  Service;

import java.util.List;
import java.util.Map;

@Service
public class BootServiceImpl implements BootService {
    //依赖注入boot
    @Autowired
    BootMapper mapp;
    @Override
    public List<Map> login(Map map) {
        List<Map> mao = mapp.login(map);
        return mao;
    }
    @Override
    public List<Map> querycity(){
        List<Map> city = mapp.querycity();
        return city;
    }

    @Override
    public List<Map> getcity() {
        return mapp.querycity();
    }

    @Override
    public Page<Map> pageCity() {
        return (Page<Map>)mapp.querycity();
    }

    @Override
    public List<Map> queryselect_info() {
        List<Map> student = mapp.queryselect_info();
        return student;
    }

    @Override
    public List<Map> queryInfox(int curr, int limit) {
        curr=(curr-1)*limit;
        return mapp.queryInfox(curr,limit);
    }

    @Override
    public int queryAllCountxx() {
        return mapp.queryAllCountxx();
    }

}
